let init = [];
export default function (state = init, action) {
    let { type, payload } = action;
    switch (type) {
        case "GETCATEGORY":
            return payload;
        default:
            return [...state];
    }
}